package com.dang.alex.service.Imp;

import java.util.List;

import com.dang.alex.dao.DAOFactory;
import com.dang.alex.model.Category;
import com.dang.alex.service.CategoryService;

public class CategoryServiceImp implements CategoryService {

	public List<Category> findAll() throws Exception {
		return DAOFactory.getCategoryDAO().findAll();
	}
	/*public List<Category> findByParentId(int pid) throws Exception {
		return DAOFactory.getCategoryDAO().findByParentId(pid);
	}*/
	
}
